package com.sl.au.service;

import java.util.List;

import com.sl.au.entity.User;
import com.sl.au.repository.UserRepository;

public interface UserService extends BaseService {
	UserRepository getRepository();

	List<User> getPage(int start, int length, String key, String orderName, String dir);
	int getCount(String key);

	List<User> getUsers(int start, int length, String key, String orderName, String dir);

	/**删除一个用户时，即把其所有的账号先删除
	 * @param userId
	 */
	void delete(String userId);
	
	/*
	 * 获得相同roleName的用户
	 */
	List<User> userByRole(String roleName);

	User findByEmpId(String getsReceivedPaymentPersonId);

}
